package model;

import java.util.ArrayList;
import java.util.List;

public class One {
    private int idOne;
    private String name;
    private List<Many> manies;

    public One() {
        manies = new ArrayList<Many>();
    }

    public int getIdOne() {
        return idOne;
    }

    public void setIdOne(int idOne) {
        this.idOne = idOne;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Many> getManies() {
        return manies;
    }

    public void setManies(List<Many> manies) {
        this.manies = manies;
    }

    @Override
    public String toString() {
        return "One{" +
                "idOne=" + idOne +
                ", name='" + name + '\'' +
                ", manies=" + manies +
                '}';
    }
}
